//
//  TransportHeaderView.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/7/2.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "TransportHeaderView.h"

@implementation TransportHeaderView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setTransport:(NSInteger)transport {
    
    if (self.transportImageView.hidden) {
        self.transportImageView.hidden = NO;
    }
    
    switch (transport) {
        case 1:
            self.transportImageView.image = [UIImage  imageNamed:@"foot"];
            break;
        case 2:
            self.transportImageView.image = [UIImage  imageNamed:@"bus"];
            break;
        case 3:
            self.transportImageView.image = [UIImage  imageNamed:@"ship"];
            break;
        case 4:
            self.transportImageView.image = [UIImage  imageNamed:@"car"];
            break;
            
        default:
            self.transportImageView.image = [UIImage  imageNamed:@"foot"];
            break;
    }
}
@end
